<?php get_header();?>
<div id="wrapper" class="container_12">
	<h1 class="grid_12 title"><?php
	if(is_day()) :
		printf(__('Daily Archives: <span>%s</span>', 'mt-white'), get_the_date());
	elseif(is_month()) :
		printf(__('Monthly Archives: <span>%s</span>', 'mt-white'), get_the_date('F Y'));
	elseif(is_year()) :
		printf(__('Yearly Archives: <span>%s</span>', 'mt-white'), get_the_date('Y'));
	elseif(is_category()) :
		printf(__('Categotry Archives: <span>%s</span>', 'mt-white'), single_cat_title('', false));
	elseif(is_tag()) :
		printf(__('Tag Archives: <span>%s</span>', 'mt-white'), single_tag_title('', false));
	elseif(has_post_format('gallery')) :
		_e('Gallery', 'mt-white');
	elseif(has_post_format('image')) :
		_e('Image', 'mt-white');
	elseif(has_post_format('link')) :
		_e('Link', 'mt-white');
	elseif(has_post_format('aside')) :
		_e('Aside', 'mt-white');
	else :
		_e('Blog Archives', 'mt-white');
	endif;
	?></h1>
	<div class="grid_8" >
		<?php get_template_part('loop');?>
		<?php
		if(function_exists('wp_pagenavi')) { wp_pagenavi();
		} else {  white_pagination();
		}
		?>
	</div>
	<?php	get_sidebar();?>
	<div class="clear"></div>
</div>
<?php get_footer();?>